package com.zc.utilclass.test;

import java.util.Date;

public class Employee {
	// 工号
	private int empno;	
	// 名字
	private String ename;
	// 工作
	private String job;
	// 雇佣日期 
	private Date hiredate;
	// 工资
	private float sal;
	
	//public Employee() {}
	
	public Employee(int empno,String ename,String job,Date hiredate,float sal) {
		this.setEmpno(empno);
		this.setEname(ename);
		this.setHiredate(hiredate);
		this.setJob(job);
		this.setSal(sal);
	}
	
	public int getEmpno() {
		return empno;
	}
	public void setEmpno(int empno) {
		this.empno = empno;
	}
	public String getEname() {
		return ename;
	}
	public void setEname(String ename) {
		this.ename = ename;
	}
	public String getJob() {
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}
	public Date getHiredate() {
		return hiredate;
	}
	public void setHiredate(Date hiredate) {
		this.hiredate = hiredate;
	}
	public float getSal() {
		return sal;
	}
	public void setSal(float sal) {
		this.sal = sal;
	}
	
	public String getEmployee(int num) {
		return String.valueOf(num);
	}
	public String getEmployee2(int num,int num2) {
		return String.valueOf(num+num2);
	}

	@Override
	public String toString() {
		return "Employee: [" + this.getEmpno()+ ","+ this.getEname()+","+
				this.getJob()+ ","+this.getSal()+"]";
	}
}
